package com.example.cloud_bus_config_consumer.feigen;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "provider", fallback = ProviderFeignImpl.class)
public interface ProviderFeign {

    @RequestMapping("/provider/method")
    public String method();

    @RequestMapping("/provider/method2")
    public String method2(@RequestParam("message") String message);
}
